/**
 * 
 */
package com.cnhaimei.vod.net.dc.state;

import com.cnhaimei.vod.net.dc.DCStateData;

/**
 * 音调水平，取值-2~2
 * 
 * @author jin001.wu@gmail.com <br>
 * @date 2011-7-15
 * 
 */
public class ToneState extends DCStateData {
	public static final int MIN = -2;
	public static final int MAX = 2;

	public ToneState() {
		super(STATE.EVOD_LIGHT_STATE);
	}

	public void setState(int state) {
		value = state;
	}

	public int getState() {
		return value;
	}

	public static boolean isAvalibee(int state) {
		return (state >= MIN && state <= MAX);
	}

}
